package com.bungarus.event;

import com.bungarus.codec.protobuf.MessageProtobuf;
import com.bungarus.model.Member;

/**
 * Created by tang on 2018/11/11.
 */
public class AuthSucceededEvent {
    private Member member;
    private MessageProtobuf.Header header;
    //if be authenticated before?
    private boolean reAuth = false;

    public AuthSucceededEvent setMember(Member member) {
        this.member = member;
        return this;
    }

    public MessageProtobuf.Header getHeader() {
        return header;
    }

    public AuthSucceededEvent setHeader(MessageProtobuf.Header header) {
        this.header = header;
        return this;
    }

    public Member getMember() {
        return member;
    }

    public boolean isReAuth() {
        return reAuth;
    }

    public void setReAuth(boolean reAuth) {
        this.reAuth = reAuth;
    }
}
